package com.yehangtech.designpattern.结构型_桥接.channel;

import com.yehangtech.designpattern.结构型_桥接.mode.IPayMode;

import java.math.BigDecimal;

/**
 * 具体的支付抽象类
 */
public abstract class AbstractPay {
    protected IPayMode payMode;

    public AbstractPay(IPayMode payMode) {
        this.payMode = payMode;
    }

    /**
     * 转移钱
     *
     * @param uId
     * @param tradeId
     * @param amount
     * @return
     */
    public abstract String transfer(String uId, String tradeId, BigDecimal amount);
}
